24.01.2012, 04:39
PHP код:
if(strcmp(cmdtext, "/limparpixe", true) == 0)
for(new i=0; i< MAX_PIX; i++)
{
new msg[200];
new rand = random(10);
if(Player[playerid][pMember] != 14) return SendClientMessage(playerid,COLOR_RED,"[ERRO] Vocк nгo pode fazer isso pois nгo й policial");
if(PlayerToPoint(3.0, playerid,Pixacao[i][PixX],Pixacao[i][PixY],Pixacao[i][PixZ]) && Pixacao[i][Dono] == 0)
return SendClientMessage (playerid,COLOR_RED,"Esse pixe nгo pode ser limpo");
if(PlayerToPoint(3.0, playerid,Pixacao[i][PixX],Pixacao[i][PixY],Pixacao[i][PixZ]) && Pixacao[i][Dono] != 0 ) {
Pixacao[i][Dono] -= Pixacao[i][Dono];
Update3DTextLabelText(PixLabel[i], PixColors[GetPlayerOrg(playerid)], "Pixaзгo \nLimpa");
format(msg, sizeof(msg), "[INFO] Vocк recebeu %d por limpar esse pixe!", rand);
SendClientMessage(playerid,COLOR_YELLOW,msg);
GivePlayerGP(playerid,rand);
return 1;
}
if(!PlayerToPoint(3.0, playerid,Pixacao[i][PixX],Pixacao[i][PixY],Pixacao[i][PixZ]))
return SendClientMessage(playerid,COLOR_RED,"[ERRO]Vocк nгo estб prуximo de nenhum pixe");
}