24.04.2010, 08:16
Can someone give a tutorial where to learn how to make simple commands ? I want to learn , I searched and I couldn't find .
if(strcmp(cmd, "/gotols", true) == 0) { if(IsPlayerConnected(playerid)) { SetPlayerPos(playerid, 1529.6,-1691.2,13.3); SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported !"); SetPlayerInterior(playerid,0); return 1; } }
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000, "You are not an admin.");
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { PutPlayerInVehicle(0, 562, 1); return 1; } return 0; } return 1; } return 0; }