18.05.2015, 20:25
What do you think about ->
Code:
forward azione(playerid,string[]); public azione(playerid,string[])//HO DOVUTO METTERE QUESTO PERCHE' NON SO' COM'E' FATTA LA VOSTRA GM { for(new u = 0; u < MAX_PLAYERS; u++) { if(IsPlayerConnected(u)) { if( GetDistanceBetweenPlayers(playerid,u) < 30 ) { SendClientMessage(u,0xFFFFFFAA,string); } } } } forward crescita(); public crescita() { for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { if( StatoPianta[i] >= 1 ) { StatoPianta[i] += 1; if( StatoPianta[i] < 20 ) { new Float:lX,Float:lY,Float:lZ; GetObjectPos(Pianta[i],lX,lY,lZ); MoveObject(Pianta[i],lX,lY,lZ+0.05,2.0); } } } } } case 3: { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, 0xFF0000AA, "Devi effettura prima il login"); return 1; } for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++) { if(IsPlayerAttachedObjectSlotUsed(playerid, i)==0) { SetPlayerAttachedObject(playerid, 1, 3026, 1, -0.125, -0.046, -0.004, -1.299, -0.5, -6.297, 1.0, 1.0, 1.0); } else { RemovePlayerAttachedObject(playerid, i); } } } }