17.04.2009, 10:48
i need command /gotoarch it will spawn u to cartune and /gotolow it should go there wher eu can tune lowriders and stuff... btw when u can mmake it to admin
if(strcmp(cmd, "/gotoct", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2721.1213,215.6053,4.4844,90);
}
else
{
SetPlayerPos(playerid,-2721.1213,215.6053,4.4844,90);
}
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[ERROR:] Your not an administrator.");
}
}
return 1;
its 1 command it should look like that
if(strcmp(cmd, "/gotoct", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2721.1213,215.6053,4.4844,90);
}
else
{
SetPlayerPos(playerid,-2721.1213,215.6053,4.4844,90);
}
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "[ERROR:] Your not an administrator.");
}
}
return 1;
its 1 command it should look like that