01.08.2018, 13:25
this commands not working, i get the unknown command error when i want to use
Код:
CMD:cr(playerid, params[]) { new S[128]; //if(Account[playerid][Admin] >= 1) { for(new i_Vehicle; i_Vehicle < MAX_VEHICLES; i_Vehicle++) { if( !ValakiAKocsiban(i_Vehicle)) { Engine_SET(playerid, i_Vehicle, 0); SetVehiclePos(i_Vehicle, Vehicles[i_Vehicle][PosX],Vehicles[i_Vehicle][PosY],Vehicles[i_Vehicle][PosZ]); SetVehicleZAngle(i_Vehicle, Vehicles[i_Vehicle][PosA]); } } format(S, sizeof(S), "%s respawnolta a jбrműveket!", GetRoleplayName(playerid)); SendClientMessageToAll(COLOR_LBLUE, S); } return 1; } ALTCMD:carrespawn->cr; stock ValakiAKocsiban(vehicleid) { for( new i; i < GetMaxPlayers(); i++ ) { if(IsPlayerInVehicle(i, vehicleid)) return true; } return false; }