mardi 21 octobre 2014

why this cmd got bugged?



pawn Code:




CMD:event1(playerid, params[]) // SPEED-RACER (rules who got first place win!!!)

{

if(IsPlayerAdmin(playerid))

{

if(IsPlayerInAnyVehicle(playerid))

{

SetVehiclePos(GetPlayerVehicleID(playerid), -1397.782470, -203.723114, 1051.346801);

SetVehicleZAngle(GetPlayerVehicleID(playerid), 93.569358);

LinkVehicleToInterior(GetPlayerVehicleID(playerid), 7);

}

}else SendClientMessage(playerid,-1,"Only Rcon admins");

{

SetPlayerPos(playerid, -1397.782470, -203.723114, 1051.346801);

SetPlayerFacingAngle(playerid, 93.569358);

}

SetPlayerInterior(playerid, 7);

SendClientMessage(playerid, COLOR_RED, "!!Teleported!!");

return 1;

}





i try to make this cmd for admin only but still why all player that not admin can use?




Aucun commentaire:

Enregistrer un commentaire