12.06.2010, 01:26
Alright, I'm a noob and I don't have a fucking clue how to make something like a /pickup and /plant weed cmd.
I've tried something but it's so HARD.
This is what I got.
I've tried something but it's so HARD.
This is what I got.
Код:
if(strcmp(cmd, "/plant weed", true) == 0 || strcmp(cmd, "/plw", true) == 0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pSeed] < 0 ) { SendClientMessage(playerid, COLOR_GRAD1, " You don't have a seed!"); return 1; } if(PlayerInfo[playerid][pSeed] > 1 ) { GetPlayerPos(playerid) CreateObject(playerid,x,y,z) } } return 1; } if(strcmp(cmd, "/pickitem", true) == 0 || strcmp(cmd, "/pi", true) == 0) { if(IsPlayerConnected(playerid)) { } } } return 1; }