21.12.2010, 13:39
I have, if player use /dm it will put him in Bloodring, and teleportation to the area !
If he /dmq it will spawn him and destroy his car !
If he /dmq it will spawn him and destroy his car !
pawn Код:
if(strcmp(cmdtext, "/dm", true) == 0)
{
new Float: tmp_A;
GetPlayerFacingAngle(playerid, tmp_A);
SetPVarInt(playerid, "d_Car", CreateVehicle(504, -1510.7020, 1014.6202, 1037.8568, tmp_A, -1, -1, -1));
SetPlayerPos(playerid, -1510.7020,1014.6202,1037.8568);
SetPlayerInterior(playerid, 15);
LinkVehicleToInterior(GetPVarInt(playerid, "d_Car"), 15);
PutPlayerInVehicle(playerid, GetPVarInt(playerid, "d_Car"), 0);
Bloodring[playerid]=1;
Dzone[playerid]=1;
return 1;
}
pawn Код:
if (strcmp(cmdtext, "/dmq", true) == 0)
{
new lastcar;
lastcar = GetPlayerVehicleID(playerid);
DestroyVehicle(lastcar);
Dzone[playerid] = 0;
Bloodring[playerid]=0;
SpawnPlayer(playerid);
RemovePlayerFromVehicle(playerid);
return 1;
}