11.12.2009, 08:29
You have to define dcmd, PlayerToPoint (in gf allready defined) and sscanf first
then...
Under OnCommandText
then...
Under OnCommandText
Код:
dcmd(Aztecas, 7, cmdtext);
Код:
dcmd_Aztecas(playerid, params[]) { if(IsPlayerAdmin(playerid) && PlayerToPoint(4.0, playerid, YourXPosition, YourYPosition, YourZPosition)) { new id; if (sscanf(params, "u", id)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/Aztecas <playerid>\""); else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000AA, "Player not found"); else { GivePlayerWeapon(id, YourWeaponIdforMp5, 200); GivePlayerWeapon(id, YourWeaponIdforDEAGLE , 200); GivePlayerWeapon(id, Armorid, 100); SendClientMessage(id, 0x00FF00AA, "You received Weapons"); SendClientMessage(playerid, 0x00FF00AA, "Player received the Weapons from you"); } return 1; } }