25.05.2011, 19:41
pawn Код:
if(strcmp(cmdtext, "/skystunt", true) == 0)
{
if(IsInDM[playerid] ==1)
{
SendClientMessage(playerid,COLOR_RED,"If you want to teleport use /leaveskystunt");
return 1;
}
else SetPlayerPos(playerid, 5041.4365, -2249.7756, 404.1307);
nojump2[playerid] = 0;
SetPlayerHealth(playerid, 100);
SetPlayerInterior(playerid, 0);
SetCameraBehindPlayer(playerid);
ResetPlayerWeapons(playerid);
new string[128], playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
format(string, sizeof(string), "[Teleport] %s has teleported to /skystunt", playerName);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(ReceiveInfo[i] == true)
{
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
}
}
return 1;
Other thing, Some of those objects are transparent, and I have to go outta the car and back in so they will show. How to fix that? Would it fix be changing all CreateObject to CreateDynamicObject?