14.04.2009, 20:45
I have this code:
I want to make him To be FS
What do i have to do?
Код:
#include <a_samp> #define COLOR_GREEN 0x00FF00AA new CreatedBlocks[200]; new CreatedBlock = 0; public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, "/roadblock", true)==0) { new Float:X, Float:Y, Float:Z, Float:A; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); new block = CreateObject(978, X, Y, Z, 0.0, 0.0, A); CreatedBlocks[CreatedBlock] = block; CreatedBlock++; SendClientMessage(playerid, COLOR_GREEN, "RoadBlock Successfully Deployed"); return 1; } if(strcmp(cmdtext, "/destroyallblocks", true)==0) { for(new i = 0; i <= CreatedBlocks[i]; i++) DestroyObject(CreatedBlocks[i]); return 1; } return 0; }
What do i have to do?