04.02.2010, 11:34
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { new idx; new cmd[256]; cmd = strtok(cmdtext, idx); if (strcmpex(cmd, "/valkyrie", true) == 0) { if (IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid), 983.4988, 2374.6072, 13.8203); } else { SetPlayerPos(playerid, 983.4988, 2374.6072, 10.8203); SetPlayerFacingAngle(playerid, 270.0); } return 1; }
Can use this.
Anybody can give me updated code please ?