13.07.2011, 11:22
Quote:
erm where do i put
if(strcmp("/elegy",cmdtext,true) == 0) { new Float, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); CreateVehicle(562, x, y, z, 0, -1, -1, 60); PutPlayerInVehicle(playerid,vehicleid,0); return 1; } |
exemple
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/elegy",cmdtext,true) == 0) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); CreateVehicle(562, x, y, z, 0, -1, -1, 60); PutPlayerInVehicle(playerid,vehicleid,0); return 1; } }