- เครดิต
- -12
- ความรู้
-
- เงิน $
-
- ความดี
-
|
if(strcmp(cmd, "/gotowow", true) == 0) //อันนี้จะเปลี่ยนเป็นอะไรก็ได้แต่ผมเอาเป็น /gotowow
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 1822.133,-3017.127,8.433);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
}
else
{
SetPlayerPos(playerid, 1822.133,-3017.127,8.433);
}
SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
} |
|