[HELP] LARP commands
#6

if(strcmp(cmd, "/rossini", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(100, playerid, 2337.9548,-1141.6005,1054.3047))//centerpoint 24-7
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /rossini [item number]");
SendClientMessage(playerid, COLOR_BLUE, "|_______ rossini family equipment _______|");
SendClientMessage(playerid, COLOR_GRAD1, "| 1: rossini family");

return 1;
}
new item = strval(tmp);
if (item == 1)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
SafeResetPlayerWeapons(playerid);
SafeGivePlayerWeapon(playerid, 3, 1);
SafeGivePlayerWeapon(playerid, 24, 400);
SafeGivePlayerWeapon(playerid, 41, 999);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s has suited himself up with the standard rossini family equipment.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
}
return 1;
}
}
}
Reply


Messages In This Thread
[HELP] LARP commands - by Banana123 - 28.02.2011, 17:17
Re: [HELP] LARP commands - by park4bmx - 28.02.2011, 17:52
Re: [HELP] LARP commands - by Banana123 - 28.02.2011, 17:53
Re: [HELP] LARP commands - by Banana123 - 01.03.2011, 13:58
Re: [HELP] LARP commands - by Banana123 - 01.03.2011, 14:00
Re: [HELP] LARP commands - by Bumbis - 01.03.2011, 14:26
Re: [HELP] LARP commands - by Banana123 - 01.03.2011, 14:47
Re: [HELP] LARP commands - by Bumbis - 01.03.2011, 16:47

Forum Jump:


Users browsing this thread: 1 Guest(s)