02.08.2009, 12:44
Код:
if(strcmp(cmdtext, "/lowrider", true) == 0) { ResetPlayerWeapons(playerid); SetPlayerPos(playerid,2645.40, -2004.71, 13.38); GivePlayerMoney(playerid, 50000); return 1; }
if(strcmp(cmdtext, "/lowrider", true) == 0) { ResetPlayerWeapons(playerid); SetPlayerPos(playerid,2645.40, -2004.71, 13.38); GivePlayerMoney(playerid, 50000); return 1; }
if(strcmp(cmdtext, "/lowrider", true) == 0) { new vehicleid; ResetPlayerWeapons(playerid); IsPlayerInAnyVehicle(playerid); SetVehiclePos(vehicleid, 2645.40, -2004.71, 13.38); SetPlayerPos(playerid,2645.40, -2004.71, 13.38); GivePlayerMoney(playerid, 50000); return 1; }
if(strcmp(cmdtext, "/lowrider", true) == 0)
{
ResetPlayerWeapons(playerid);
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), 2645.40, -2004.71, 13.38);
else SetPlayerPos(playerid, 2645.40, -2004.71, 13.38);
GivePlayerMoney(playerid, 50000);
return 1;
}
Originally Posted by speedruntrainer
zOMFG Thanks!!! Nice man.
EDIT: You can also teleport without car. how to prevent that? |
if(strcmp(cmdtext, "/lowrider", true) == 0) {
ResetPlayerWeapons(playerid);
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), 2645.40, -2004.71, 13.38);
else SetPlayerPos(playerid, 2645.40, -2004.71, 13.38);
GivePlayerMoney(playerid, 50000);
return 1;
}
Originally Posted by Don Correlli
pawn Код:
|
else SetPlayerPos(playerid, 2645.40, -2004.71, 13.38);
else SendClientMessage(playerid, 0xFFFFFFAA, "SERVER: You can't teleport if you're not in vehicle!");
if(strcmp(cmdtext, "/lowrider", true) == 0)
{
ResetPlayerWeapons(playerid);
if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), 2645.40, -2004.71, 13.38);
else SendClientMessage(playerid, 0x0000BBAA , " You can do this only if you are in an vehicle");
GivePlayerMoney(playerid, 50000);
return 1;
}