11.01.2010, 17:12
if (strcmp("/Stunt", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
return 0;
}
No seu tinha 1 espaзo.
if(strcmp(cmdtext, "/Stunt", true) == 0)
{
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagem",5000,1);
}
if (!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagen ",5000,1);
SetPlayerInterior(playerid, 0);
}
return 1;
}
return 0;
}
TENTA ESTE QUE TE PASSEI
{
if(IsPlayerInAnyVehicle(playerid)) {
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID, 2103.561,874.452,11.110);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
SetPlayerInterior(playerid,0);
}
else{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2103.561,874.452,11.110);
SetPlayerFacingAngle(playerid,0.0);
return 1;
}
return 0;
}
No seu tinha 1 espaзo.
if(strcmp(cmdtext, "/Stunt", true) == 0)
{
if (IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagem",5000,1);
}
if (!IsPlayerInAnyVehicle(playerid))
{
SetPlayerPos(playerid, POS X,Y,Z);
GameTextForPlayer(playerid,"Mensagen ",5000,1);
SetPlayerInterior(playerid, 0);
}
return 1;
}
return 0;
}
TENTA ESTE QUE TE PASSEI