stock PlayerTeleport(playerid,Float:x,Float:y,Float:z,Cmd[],Message[])
{
SetPlayerPos(playerid,x,y,z);
new stR[200];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stR,sizeof(stR),\"%s elteleportált ide: %s [ /%s ]\", pName, Message, Cmd);
SendClientMessageToAll( -1, stR);
GameTextForPlayer(playerid, Message, 1500, 1);
PlayerPlaySound(playerid, 1085, x, y, z);
return 1;
}
Használata:
PlayerTeleport(playerid, x, y, z, sf, San Fierro);