20.12.2010, 15:14
How do i make it so that in order to do the command /osdoor qne /csdoor you have to be set by someone using the command /setsdoor id
so for example
if i wasnt set and i did /osdoor i would get You are not allowed to use this command
same for /csdoor
but if i did /setsdoor id i would be able to do it
so for example
if i wasnt set and i did /osdoor i would get You are not allowed to use this command
same for /csdoor
but if i did /setsdoor id i would be able to do it
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext,"/osdoor", true) == 0) { MoveObject(sdoor, 2974.106445,2124.700683,8.532794, 1.500000); MoveObject(radar, 2965.032226,2123.313232,8.486142,1.500000); MoveObject(stairs, 2966.623046,2116.100097,6.840229,1.500000); return 1; } if(strcmp(cmdtext,"/csdoor", true) == 0) { MoveObject(sdoor, 2974.106445,2116.620117,8.532794, 1.500000); MoveObject(radar, 2966.035156,2118.921875,8.486142, 1.500000); MoveObject(stairs, 2966.623046,2116.100097,2.008096,1.500000); return 1; }