if (strcmp("/GoToDrisa", cmdtext, true, 10) == 0) { if(!IsPlayerXAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"фчегд жаъ жойрд шч магойрйн"); if( GetPlayerState(playerid) == PLAYER_STATE_DRIVER ) { SetVehiclePos(GetPlayerVehicleID(playerid), 2381.4929,1132.9126,34.2529 ); SetVehicleZAngle(GetPlayerVehicleID(playerid), 268.4467 ); SetPlayerTime(playerid,00,00); LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0 ); }else{ SetPlayerPos(playerid, 2381.4929,1132.9126,34.2529); SetPlayerFacingAngle(playerid, 268.4467); SetPlayerTime(playerid,10,00); ResetPlayerWeapons(playerid); } SetPlayerVirtualWorld(playerid, 62); SetPlayerInterior(playerid,0); SendClientMessage(playerid, 0x00FF00FF, "! дщъвшъ мажеш дфтймеъ гшйсд"); return 1; }
You're using Pawn coding... why are you using a [php] tag? Use a [pawn] tag... It'll be much easier to read :l
|
if (strcmp("/GoToDrisa", cmdtext, true, 10) == 0)
{
if(!IsPlayerXAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"фчегд жаъ жойрд шч магойрйн");
if( GetPlayerState(playerid) == 2 )
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2381.4929,1132.9126,34.2529);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 0);
}else{
SetPlayerPos(playerid, 2381.4929,1132.9126,34.2529);
SetPlayerFacingAngle(playerid, 268.4467);
SetPlayerTime(playerid,10,00);
ResetPlayerWeapons(playerid);
}
SetPlayerVirtualWorld(playerid, 62);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, 0x00FF00FF, "! дщъвшъ мажеш дфтймеъ гшйсд");
return 1;
}
Try this
pawn Код:
|
if (strcmp("/GoToDrisa", cmdtext, true, 10) == 0)
{
if(!IsPlayerXAdmin(playerid))return SendClientMessage(playerid,0xFF0000FF,"фчегд жаъ жойрд шч магойрйн");
if( GetPlayerState(playerid) == 2 )
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar, 2381.4929,1132.9126,34.2529);
LinkVehicleToInterior(tmpcar, 0);
SetVehicleVirtualWorld(tmpcar, 62);
}else{
SetPlayerPos(playerid, 2381.4929,1132.9126,34.2529);
SetPlayerFacingAngle(playerid, 268.4467);
SetPlayerTime(playerid,10,00);
ResetPlayerWeapons(playerid);
}
SetPlayerVirtualWorld(playerid, 62);
SetPlayerInterior(playerid,0);
SendClientMessage(playerid, 0x00FF00FF, "! дщъвшъ мажеш дфтймеъ гшйсд");
return 1;
}