24.11.2009, 00:49
// Edit
Okay, i made it myself nearly.. I have this problem when I'm entering the police station i get teleported up in the air and then i fall down..
if(!strcmp(cmdtext, "/pdenter", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if(PlayerToPoint(1.0,playerid, 1568.6848,-1690.3054,5.8906))
{
SetPlayerPos(playerid,242.7636,66.3462,1003.6406);
GameTextForPlayer(playerid, "~w~Police Department",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}
}
return 1;
}
What's wrong?
Okay, i made it myself nearly.. I have this problem when I'm entering the police station i get teleported up in the air and then i fall down..
if(!strcmp(cmdtext, "/pdenter", true))
{
if(IsPlayerConnected(playerid))
{
if(GetPlayerState(playerid) == 1)
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if(PlayerToPoint(1.0,playerid, 1568.6848,-1690.3054,5.8906))
{
SetPlayerPos(playerid,242.7636,66.3462,1003.6406);
GameTextForPlayer(playerid, "~w~Police Department",5000,1);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
}
}
}
}
return 1;
}
What's wrong?