21.05.2011, 15:08
agora deu obrigado...
pawn Код:
CMD:teste2(playerid, params[])
{
#pragma unused params
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos( GetPlayerVehicleID( playerid ), 2068.9102,-1391.3558,1136.8787 );
SetVehicleZAngle( GetPlayerVehicleID( playerid ), 0.393166 );
new pname[MAX_PLAYER_NAME], string[100];
GetPlayerName( playerid, pname, MAX_PLAYER_NAME );
format( string, sizeof string , "%s {FFFFFF}Foi Para o Super [{FFFF00}/super {FFFFFF}]", pname );
SendClientMessageToAll( 0xFFFF00AA, string );
SendClientMessage(playerid,0xFFFF00AA,"[Dica]"),SendClientMessage(playerid,0xFFFFFFFF,"Se nгo aparecer os objetos quando vocк estiver em um veнculo,"),SendClientMessage(playerid,0xFFFFFFFF,"saia do veнculo e entre de novo.");
}
else
{
SetPlayerPos(playerid, 2068.9102,-1391.3558,1136.8787);
SetPlayerFacingAngle(playerid, 0.393166);
SetPlayerInterior(playerid,0);
new pname[MAX_PLAYER_NAME], string[100];
GetPlayerName( playerid, pname, MAX_PLAYER_NAME );
format( string, sizeof string , "%s {FFFFFF}Foi Para o Super [{FFFF00}/super {FFFFFF}]", pname );
SendClientMessageToAll( 0xFFFF00AA, string );
}
return true;
}