27.01.2010, 23:07
Yeah.. kind of annoying really.
Any help?
Quote:
if(strcmp(cmdtext, "/rb", true)==0) { if(gTeam[playerid] != 2) return SendClientMessage(playerid, COLOR_RED,"/"); if (RoadBlock[playerid] == 1) return SendClientMessage(playerid, COLOR_RED,"/"); { new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); roadblock = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180); SetPlayerPos(playerid, X, Y, Z+4) RoadBlock[playerid] += 1; SendClientMessage(playerid, COLOR_GREEN, "RoadBlock successfully deployed!"); return 1; } } |