16.10.2013, 16:34
pawn Код:
CMD:sendtobank(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new string[128], giveplayerid;
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "PEMAKAIAN: /sendtobank [playerid]");
if(IsPlayerConnected(giveplayerid))
{
if (PlayerInfo[giveplayerid][pAdmin] >= )//Here Your Admin Level
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Anda tidak cukup level admin untuk menggunakan perintah ini!");
return 1;
}
format(string, sizeof(string), " Anda telah mengirim %s Ke Bank.", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_WHITE, string);
SendClientMessageEx(giveplayerid, COLOR_GRAD1, " Anda telah di teleportasi ke Bank!");
SetPlayerPos(giveplayerid, //YOUR COORDINAT HERE);
SetPlayerVirtualWorld(giveplayerid, 0);
SetPlayerInterior(giveplayerid, 0);
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD1, "Anda tidak memiliki wewenang untuk menggunakan perintah ini!");
}
return 1;
}
How to make coordinnat ? stand on your coordinat after it /save