29.01.2013, 00:38
SK PlayerPos
pawn Code:
//uso
SetPlayerPosEx(playerid, Text[], y,x,z,a, interiorid);
ex:
SetPlayerPosEx(playerid, "", 1634.1287, -1901.5577, 13.5528, 350.6504, 0);//se deixar "" sem nada ou com "_" nao aparecerб nenhuma mensagem! mбs ao contrario
na print usei o seguinte
SetPlayerPosEx(playerid, "Hard Jump", 1224.7327, -226.0129, 2741.6633, 144.2437, 0);
pawn Code:
//stock
stock SetPlayerPosEx(playerid, string[], Float:X, Float:Y, Float:Z, Float:A, interior){
new
sk@_[129], sk_@[MAX_PLAYER_NAME];
GetPlayerName(playerid, sk_@, MAX_PLAYER_NAME);
SetPlayerPos( playerid, Float:X, Float:Y, Float:Z );
SetPlayerFacingAngle( playerid, Float:A );
SetPlayerInterior( playerid, interior );
if(strlen(string) > 1){
format( sk@_, 129, "{FF0000}| INFO | {%06x} %s {FFFFFF}Foi Teleportado para: {53AA33}%s", GetPlayerColor(playerid) >>> 8, sk_@, string );
SendClientMessageToAll( -1, sk@_);
}
return true;
}