25.03.2017, 02:18
PHP код:
PHP Code:
CMD:abastecer(playerid)
{
new sendername[MAX_PLAYERS];
new string[200];
if(!IsPlayerInRangeOfPoint(playerid,1.0,677.1426,1939.2954,5.5391)) return SCM(playerid,COR_ERRO,"[ERRO] Vocк nгo esta na бrea de abastecimento!");
if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 498)
return SCM(playerid, COR_ERRO, "[ERRO] Vocк precisa estar dentro do veнculo principal dos Matutos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[INFO]: O Matuto {FFFFFF}%s {4B0082}Abasteceu a comunidade{FFFFFF} Chapadao", sendername);
armaFav1 += 10;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
SendClientMessageToAll(0x4B0082AA, string);
return 1;
}