AdoUMfsamp 1 Odesláno: 10. Únor, 2015 Share Odesláno: 10. Únor, 2015 new job[MAX_PLAYERS]; //proměna pro povolání new povolanipick; // definace povolání #define SCM SendClientMessage #define IsPlayerInSphere(%0,%1,%2,%3,%4) IsPlayerIsRangeOfPoint(%0,%4,%1,%2,%3) public OnGameModeInit() { povolanipick = CreatePickup(1314,1,2177.7808,1721.7322,11.0469); // Doplnte si souřadnice return 1; } public OnGameModeExit() { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == povolanipick){ SCM(playerid,0x8C7213FF,": zaměstnej se Enter/F"); } return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_SECONDARY_ATTACK){//enter pro zaměstnání if(IsPlayerInRangeOfPoint(playerid,2177.7808,1721.7322,11.0469, 3) == 1){ if(job[playerid] == 1) return SendClientMessage(playerid,0x44ED19FF, "[** ERROR **] Zde už jsi zaměstnán!"); job[playerid] = 1; SetPlayerSkin(playerid,123); GivePlayerWeapon(playerid,26,100); } } return 1; } caute potrebujem poradit ako by sa dalo do tohto povolania doplnit ze ked ma zabiju nech spawne u toho zamestania Link to comment Share on other sites More sharing options...
0 Hutt2 1 Odesláno: 10. Únor, 2015 Share Odesláno: 10. Únor, 2015 Do OnPlayerSpawn: if (job[playerid] == 1) { SetPlayerPos(); } Link to comment Share on other sites More sharing options...
0 AdoUMfsamp 1 Odesláno: 10. Únor, 2015 Author Share Odesláno: 10. Únor, 2015 Dik Link to comment Share on other sites More sharing options...
Dotaz
AdoUMfsamp 1
caute potrebujem poradit ako by sa dalo do tohto povolania doplnit ze ked ma zabiju nech spawne u toho zamestania
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now