16.10.2009, 19:40
pawn Код:
//--------------------[bush]-----------------------------
if ( strcmp( "/bush", cmdtext, true,5 ) )
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return 1;
}
if ( BushEnabled[playerid] )
{
DestroyObject( BushObject[playerid] );
SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Disabled.");
BushEnabled[playerid] = false;
return 1;
}
if(pAdmin[playerid] >= 1)
{
BushObject [playerid] = CreateObject( 800, 0, 0, 0, 0, 0, 0 );
BushEnabled[playerid] = true;
SendClientMessage(playerid, 0xDEEE20FF, "The Bush is Enabled.");
AttachObjectToPlayer( BushObject[playerid], playerid, 0, 0, 0, 0, 0, 0 );
}
return 1;
}