if(strcmp(cmd, "/equiparusa", true) == 0)
{
if(PlayerToPoint(5.0,playerid, 1797.9982,-1165.7604,23.8281))
{
if(TEAM_USA)
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 18, 999);
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 24, 999);
GivePlayerWeapon(playerid, 31, 999);
GivePlayerWeapon(playerid, 29, 999);
GivePlayerWeapon(playerid, 27, 999);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 34, 999);
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid,RED,"Vocк pegou seu kitvip!");
return 1;
}
else
{
SendClientMessage(playerid, RED, "Vocк nгo й dos Estados Unidos!");
}
}
else
{
SendClientMessage(playerid, RED, "Vocк nгo estб na zona de equipamento");
}
}
#define TEAM_EUA 1
#define TEAM_IRAQ 2
#define TEAM_CHINA 3
Originally Posted by Caio_Cartaxo
Muito obrigado, vou usar
|
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // + 1 para o jogador que matou
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); // - 1 para o jogador que morreu
public OnPlayerDeath(playerid, killerid, reason)
//Comando
if(strcmp(cmd, "/radio", true) == 0 || strcmp(cmd, "/r", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessageEx(playerid, COR_CINZA, "USE: (/r)adio [radio chat]","Use: (/r)adio [radio chat]");
return 1;
}
if(gTeam[playerid] == TEAM_USA)
{
if(gTeam[playerid] == TEAM_USA) { format(string, sizeof(string), "** USA %s: %s, over. **", sendername, result); }
else
{
format(string, sizeof(string), "** USA %s: %s, over. **", sendername, result);
}
SendRadioMessage(5,COR_AZULC,string);
printf("%s", string);
return 1;
}
return 1;
}