Jump to content
  • 0

pomoc Povolanie help


AdoUMfsamp

Dotaz

 

 

 

 

 

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 :d potrebujem poradit ako by sa dalo do tohto povolania doplnit ze ked ma zabiju nech spawne u toho zamestania   :d 

 

 

 

 

 

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...